package at.fhooe.mc.msports.heartrate;

public class RawHeartRateData {

    /** Dead battery */
    public static final int BATTERY_DEAD = 0;

    /** Weak battery (Polar: 2.7 - 2.78 V) */
    public static final int BATTERY_WEAK = 25;

    /** Normal battery (Polar: 2.78 - 2.9 V) */
    public static final int BATTERY_NORMAL = 75;

    /** Full battery */
    public static final int BATTERY_FULL = 100;

    protected int batteryStatus; // status of the battery
    protected int heartRate; // heart rate / pulse
    protected int RR; // RR intervals (milliseconds between subsequent heart beats)

    public RawHeartRateData() {
	batteryStatus = 0;
	heartRate = 0;
	RR = 0;
    }

    public RawHeartRateData(int batteryStatus, int heartRate, int RR) {
	this.batteryStatus = batteryStatus;
	this.heartRate = heartRate;
	this.RR = RR;
    }

    public int getBatteryStatus() {
	return batteryStatus;
    }

    public void setBatteryStatus(int batteryStatus) {
	this.batteryStatus = batteryStatus;
    }

    public int getHeartRate() {
	return heartRate;
    }

    public void setHeartRate(int heartRate) {
	this.heartRate = heartRate;
    }

    public int getRR() {
	return RR;
    }

    public void setRR(int RR) {
	this.RR = RR;
    }

    public String toString() {
	return "Heart rate: " + heartRate + "\nBattery status: "
		+ batteryStatus + "\nRR: " + RR;
    }
}
